package lab02.test02;

/**
 * Created by mac on 2017/10/12.
 */
public class Circle {
    //属性：半径
    double radius;

    //行为：圆的面积与周长
    double area(){

        return 3.14 * radius * radius;

    }

    double perimeter(){

        return 2 * 3.14 * radius;

    }


}
